package com.iflytek.esb.function;

import java.util.Map;

import org.apache.log4j.Logger;

import com.iflytek.esb.domain.Message;
import com.iflytek.esb.exceptions.RetryableException;
import com.opensymphony.module.propertyset.PropertySet;
import com.opensymphony.workflow.WorkflowException;

public class WebServiceReturn extends MessageFunction {

	private static final Logger LOG = Logger.getLogger(WebServiceReceiver.class);
	
	protected void process(Message message, 
			final Map<String, String> args,
			PropertySet ps) throws WorkflowException, RetryableException {
		
		LOG.debug("<invoke web service return>");
		
		message.setResponseContent(message.getContent());
		message.setResponseHeaders(message.getHeaders());
		message.setResponsed(true);
	}

}
